package com.ruibang.glass.produce.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import com.teaming.cloud.framework2.common.tools.LocalDateTimeStringConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 生产-理化-混合料均匀度表
 * </p>
 *
 * @author songJinKang
 * @since 2024-03-12
 */

@ApiModel(value = "生产-理化-混合料均匀度表")
@TableName("g_produce_uniformity_mixture")
@Data
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
public class UniformityMixture extends BaseEntity {

    @ExcelIgnore
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "记录编号")
    @ColumnWidth(20)
    @ExcelProperty(value = {"记录编号"}, index = 0)
    private String code;
    @ApiModelProperty(value = "版本")
    @ColumnWidth(8)
    @ExcelProperty(value = {"版本"}, index = 0)
    private String version;
    @ApiModelProperty(value = "料罐")
    @ColumnWidth(8)
    @ExcelProperty(value = {"料罐"}, index = 0)
    private String bucket;
    @ApiModelProperty(value = "检测时间")
    @ColumnWidth(18)
    @ExcelProperty(value = {"检测时间"}, index = 0, converter = LocalDateTimeStringConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkTime;
    @ApiModelProperty(value = "检测人")
    @ColumnWidth(10)
    @ExcelProperty(value = {"检测人"}, index = 0)
    private String checkBy;
    @ApiModelProperty(value = "检测人")
    @ExcelIgnore
    private String checkById;
    @ApiModelProperty(value = "混合机")
    @ColumnWidth(10)
    @ExcelProperty(value = {"混合机"}, index = 0)
    private String mixer;
    @ApiModelProperty(value = "碳酸钙含量%")
    @ColumnWidth(10)
    @ExcelProperty(value = {"碳酸钙含量%"}, index = 0)
    private Double f1;
    @ApiModelProperty(value = "均匀度﹥95%")
    @ColumnWidth(10)
    @ExcelProperty(value = {"均匀度﹥95%"}, index = 0)
    private Double f2;
    @ApiModelProperty(value = "备注")
    @ColumnWidth(30)
    @ExcelProperty(value = {"备注"}, index = 0)
    private String remark;
    @ApiModelProperty(value = "创建人")
    @ExcelIgnore
    private String createUserName;
    @ApiModelProperty(value = "创建人用户ID")
    @ExcelIgnore
    private String createUserId;
    @ApiModelProperty("是否删除：1：是 0：否")
    @ExcelIgnore
    @TableLogic
    private String isDelete;
}
